package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Purchasematerial;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface PurchasematerialService {

	public Purchasematerial savePurchasematerial(Purchasematerial purchasematerial);

	public Set<Purchasematerial> loadPurchasematerials();

	public Set<Purchasematerial> loadReferencePurchasematerials(Set<Purchasematerial> purchasematerials);

	public Set<Purchasematerial> loadPurchasematerialsByIdSet(Set<Integer> purchasematerialsId);

	public Map<String, ?> loadPurchasematerialObjectReferencedSet(Purchasematerial purchasematerial);

	public Map<String, ?> loadPurchasematerialClassReferencedSet(Purchasematerial purchasematerial);

	public void deletePurchasematerial(Purchasematerial purchasematerial);

	public void deletePurchasematerials(Set<Integer> deletePurchasematerialsId);

	public List<Purchasematerial> findAllPurchasematerials(Integer startResult, Integer maxRows);

	public Purchasematerial findPurchasematerialByPrimaryKey(Integer id);

	public Integer countPurchasematerials();

	public Integer countPurchasematerials(CmiPagination page);

	public Integer countPurchasematerialsByName(String queryName);

	public Integer countPurchasematerialsByDetachedCriteria(CmiPagination page);

}
